//
//  MediaManager.h
//  DongYu
//
//  Created by DongYu  on 2023.
//  Copyright © 2023 DongYu . All rights reserved.
//

#import <Foundation/Foundation.h>

#import <Photos/Photos.h>

@interface MediaManager : NSObject

//请求相册权限
- (void)requestPhotoAuthorizationStatus:(void (^)(BOOL granted))completion;

//打开相机权限
- (void)requestCameraAuthorizationStatus:(void (^)(BOOL granted))completion;

//请求麦克风权限
- (void)requestMaikeAuthorizationStatus:(void (^)(BOOL granted))completion;

//提示用户进行麦克风使用授权
- (void)showSetAlertView;

//提示没有相册权限
- (void)showAlertViewAboutNotAuthorAccessPhoto;

//提示没有相机权限
- (void)showAlertViewAboutNotAuthorAccessCamera;

+ (instancetype)shareInstance;

#define kMediaManager [MediaManager shareInstance]

@end
